<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>年龄增加</title>
    <script>
      //接收用户的输入
      //注意: 接收到的类型是字符串类型!
      let age = prompt('请您输入年龄:')
      //把接收到的数据类型转换成合适的类型进行运算
      alert(`您明年是${age - 0 + 1}岁`)
    </script>
  </head>
  <body></body>
</html>
